/**资源管理 */
export default class ResouceManager {
  /**清空对象，并且删除属性 */
  static clearObject(obj: any) {
    for (var key in obj) {
      delete obj[key];
    }
  }
  /**清空对象，将对象属性置空 */
  static clearObjectToTemp(obj: any) {
    for (var key in obj) {
      if (typeof obj[key] == "function") {
        obj[key] = () => {};
      } else {
        obj[key] = null;
      }
    }
  }
}
